<table cellspacing="10px" style="margin: 50px;margin-bottom: 10px">
    <tr>
        <td>
            Task Name
        </td>
        <td>
            <?php echo $task->name; ?>
        </td>
    </tr>
    <tr>
        <td>
            Task Creator
        </td>
        <td>
            <?php echo $task->firstName." ".$task->lastName; ?>
        </td>
    </tr>
    <tr>
        <td>
            Task Start Date
        </td>
        <td>
            <?php echo $task->startDate; ?>
        </td>
    </tr>
    <tr>
        <td>
            Task End Date
        </td>
        <td>
            <?php echo $task->endDate; ?>
        </td>
    </tr>
    <tr>
        <td>
            Task Type
        </td>
        <td>
            <?php echo $task->taskType; ?>
        </td>
    </tr>
    <tr>
        <td>
            Task Status
        </td>
        <td>
            <?php echo $task->taskStatus; ?>
        </td>
    </tr>
    <tr>
        <td>
            Task Points
        </td>
        <td>
            <?php 
            if(isset($task->points))
                echo $task->points;
            else
                echo "Not set yet";
            ?>
        </td>
    </tr>
</table>
<?php
if(isset($task->users))
{?>
Users Assigned in this Task
<table style="margin: 50px;margin-top: 0px;" cellspacing="15px">
    <tr>
        <td>
            name
        </td>
        <td>
            Evaluation
        </td>
    </tr>
    <?php
        foreach($task->users as $user){
    ?>
    <tr>
        <td>
            <?php echo $user->firstName." ".$user->lastName; ?>
        </td>
        <td>
            <?php echo $user->evalName; ?>
        </td>
    </tr>
    <?php } ?>
</table>
<?php }
else
    echo " NO USERS ASSIGNED TO THIS TASK !!! ";
?>